package com.eagle.posrole.dao.impl;

import java.util.List;
import com.eagle.commons.pub.IBATISDB;
import com.eagle.commons.vo.Q_wmenu;
import com.eagle.commons.vo.tbl_PosMenu;
import com.eagle.commons.vo.tbl_RoleQxfp;
import com.eagle.posrole.dao.WMenuDao;
import com.ibatis.sqlmap.client.SqlMapClient;

public class WMenuDaoImpl implements WMenuDao {
	private SqlMapClient sqlMapClient;

	
	public List<tbl_PosMenu> allMenu() throws Exception {
		List<tbl_PosMenu> resultList = null;
		resultList = sqlMapClient.queryForList(IBATISDB.creStmId("PosRole_Tbl_PosMenu","allMenu"));
		return resultList;
	}
	public SqlMapClient getSqlMapClient() {
		return sqlMapClient;
	}

	public void setSqlMapClient(SqlMapClient sqlMapClient) {
		this.sqlMapClient = sqlMapClient;
	}


	@Override
	public List<tbl_RoleQxfp> queryQXByID(String menuId) throws Exception {
		List<tbl_RoleQxfp> resultList = null;
		resultList = sqlMapClient.queryForList(IBATISDB.creStmId("PosRole_Tbl_RoleQxfp", "queryByRoleBm"),menuId);
		return resultList;
	}

	
}
